package Day07;

public class Phone {
    private String brand;
    private int price;
    private String color;
    public Phone(){

    }
    public Phone(String brand,int price,String color){
        this.brand=brand;
        this.price=price;
        this.color=color;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public String getBrand(){
        return brand;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public String getColor(){
        return color;
    }
    public void setPrice(int a){
        price=a;
    }
    public int getPrice(){
        return price;
    }

    public void sendMessage(){
        System.out.println("正在使用"+price+"元"+color+"的"+brand+"发短信");
    }
    public void call(){
        System.out.println("正在使用"+price+"元"+color+"的"+brand+"打电话");
    }
}
